import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '*',
      redirect: '/'
    },
    {
      path: '/',  
      name: 'personal',  /* 个人中心 */
      component: resolve => require(['../views/personal'], resolve).default,
    },
    {
      path: '/record',    /*记录 */
      name: 'record',
      component: resolve => require(['../views/record'], resolve).default,
    },
    {
      path: '/coming',    /* 即将开始考试 */
      name: 'coming',
      component: resolve => require(['../views/coming'], resolve).default,
    },
    {
      path: '/exam',    /*考试 */
      name: 'exam',
      component: resolve => require(['../views/exam'], resolve).default,
    },
    {
      path: '/transfer',    /*单位迁移 */
      name: 'transfer',
      component: resolve => require(['../views/transfer'], resolve).default,
    },
    {
      path: '/newslist',    /*通知消息列表 */ 
      name: 'newslist',
      component: resolve => require(['../views/newslist'], resolve).default,
    },
    {
      path: '/news',    /*通知消息 */ 
      name: 'news',
      component: resolve => require(['../views/news'], resolve).default,
    },
    {
      path: '/addexaminee',    /*添加考生  */ 
      name: 'addexaminee',
      component: resolve => require(['../views/addexaminee'], resolve).default,
    },
    {
      path: '/examinee',    /*补考考生  */ 
      name: 'examinee',
      component: resolve => require(['../views/examinee'], resolve).default,
    },
    {
      path: '/publishnews',    /*发布考试通知 */ 
      name: 'publishnews',
      component: resolve => require(['../views/publishnews'], resolve).default,
    },
    {
      path: '/pendingreview',    /*待评卷*/
      name: 'pendingreview',
      component: resolve => require(['../views/pendingreview'], resolve).default,
    },
    {
      path: '/answers',  /*待评卷列表  进去以后的考生答卷的列表  */
      name: 'answers',
      component: resolve => require(['../views/answers'], resolve).default,
    },
    {
      path: '/historicalreview',  /*历史评卷 */
      name: 'historicalreview',
      component: resolve => require(['../views/historicalreview'], resolve).default,
    },
    {
      path: '/answersone',  /*历史评卷列表  进去以后的考生答卷的列表  */
      name: 'answersone',
      component: resolve => require(['../views/answersone'], resolve).default,
    },
    {
      path: '/set',  /*一键练习  */
      name: 'set',
      component: resolve => require(['../views/set'], resolve).default,
    },
  ]
})
